package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author shuiyun
 * @program device-simulator
 * @description 终端升级应答
 * @date 2022-05-11 22:36
 **/
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
@Message(JT808.终端升级结果通知0x0108)
public class T0108 extends JTMessage {

    /** 0-终端 12-道路运输证IC卡读卡器 52-北斗定位模块 */
    @FieldValue(type = DataType.BYTE,desc = "升级类型")
    private Integer type;

    /** 0-成功 1-失败 2-取消 */
    @FieldValue(type = DataType.BYTE,desc = "升级结果")
    private Integer result;
}
